package com.itheima.demo.demo10;

import java.io.*;

public class ZhuanHuan {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr=new InputStreamReader(new FileInputStream("D:\\法师.txt"),"gbk");
        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("D:\\法师11.txt"),"UTF-8");
        int len=0;
        while ((len=isr.read())!=-1){
            //System.out.println((char)len);
            osw.write(len);
        }
        osw.flush();
        isr.close();
        osw.close();

    }
}
